import request from '@/assets/utils/request'

// 学科列表
export const getSubjectIDList = () => {
  return request({
    url: '/subjects/simple',
    method: 'GET',
  })
}
// 目录列表
export const getCatalogIDList = (params) => {
  return request({
    url: '/directorys',
    method: 'GET',
    params
  })
}
// 企业列表
export const getEnterpriseIDList = () => {
  return request({
    url: '/companys',
    method: 'GET',
  })
}
// 方向列表  基础题库
export const getDirectionList = () => {
  return request({
    url: '/questions',
    method: 'GET',
  })
}
// 标签列表
export const getTagList = (params) => {
  return request({
    url: '/tags',
    method: 'GET',
    params
  })
}

// 提交  试题录入
export const addQuestions = (data) => {
  return request({
    url: '/questions',
    method: 'POST',
    data
  })
}
